package com.tom.girl;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/hello")
public class HelloController {
    @Autowired
    private  GirlProperties girlProperties;
    @RequestMapping(value = "/hhy/{id}",method = RequestMethod.GET)
    @GetMapping(value = "/hhy")
    public String hello(@RequestParam(value = "id",required = false,defaultValue = "0") Integer id){
        return  "ID： " + id;
    }
}
